<?php

/**
 * @name 活动
 */
class Controller_Activity extends \Modules\Admin\Controllers\Controller {

    /**
     * @name 示范页面
     */
    public function indexAction() {
    }

    /**
     * @name 注册活动
     */
    public function registerAction() {
        $item = (new \Data\Activity\Register())->get();
        $this->response['item'] = $item;
    }
    /**
     * @name 更新注册活动
     */
    public function registerupdateAction() {
        $start = \S\Request::post('start');
        $end = \S\Request::post('end');
        $minute = \S\Request::post('minute');
        (new \Data\Activity\Register())->update($start,$end,$minute);
    }

}
